<html>
    <head>
        <title>MouseOut事件</title>
        <script language="JavaScript">
            function warn(){
                if (confirm("下面将自动转到搜狐网"))
                window.location="http://www.soho.com";
            }

        </script>
    </head>
    <body>
        <p><a href="http://www.soho.com" onMouseOut="warn()">搜狐网</a></p>

    </body>
</html>